package observe.pojo;
//TODO 定义对象间的一种一对多的依赖关系，当一个对象的状态发生改变时，所有依赖于它的对象都得到通知并被自动更新
public class demo {
    public static void main(String[] args) {
        Subject subject = new Subject();
        BinaryObserve binaryObserve = new BinaryObserve(subject);
        OctalObserver octalObserver = new OctalObserver(subject);
        subject.setStatus(10);
        subject.setStatus(15);
    }
}
